package com.lxw.manage_cms.mq;

import com.lxw.manage_cms.config.MqConst;
import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;
@Slf4j
@Component
@RabbitListener(queues = MqConst.TEST_MQ)
public class Testmq {
    @RabbitHandler
    public void  process(String msg){
      log.info("TEST_MQ 收到消息"+msg);
    }
}
